@extends('admin._layouts.default')

@section('main')

        <div class="row-fluid">
            @include('admin._partials.order_top')
            <!-- 搭配方案开始 -->
              <hr>
              <h3><span><i class="fa fa-align-justify"></i> 搭配方案</span></h3>
              <div>
                <!-- 历史沟通信息开始 -->
              @foreach($collocations as $collocation)
              <?php $plans = (array)json_decode($collocation->plan); ?>
              <div class="form-row control-group row-fluid">
                <div class="controls span1">
                    <img src="{{ asset('web/img/logo_avatar.gif') }}" class="img-thumbnail">
                </div>
                <div class="controls span10">
                  <blockquote>
                    <p>
                    @foreach($plans['content'] as $key => $plan)
                    @if($plan != '')
                    <span class="mg5"><i class="fa fa-tag"></i> {{ $plan }} <i class="fa fa-cny"></i>{{ $plans['price'][$key] }}</span>
                    @endif
                    @endforeach
                    </p>
                    <p><i class="fa fa-edit"></i> {{ $collocation->remark }} </p>
                    <footer>{{ $collocation->created_at }}</footer>
                  </blockquote>
                </div>
              </div>
              @if($collocation->reback != '')
              <div class="form-row control-group row-fluid">
                <div class="controls span1">
                    <img src="{{ $customer->avatar }}" class="img-thumbnail">
                </div>
                <div class="controls span10">
                  <blockquote class="blockquote-reverse">
                    <p><i class="fa fa-edit"></i> {{ $collocation->reback }}</p>
                    <footer>{{ $collocation->updated_at }}</footer>
                  </blockquote>
                </div>
              </div>
              @endif
              @endforeach

            <!-- 历史沟通信息结束 -->
              <div class="form-actions row-fluid">
                <div class="span10 offset3">
                  <span class="fs_60 mg10"><i class="fa fa-clock-o"></i> 等待回复</span>
                </div>
              </div>

              </div>
              <!-- 搭配方案结束 -->



            </div> <!-- End .content -->
          </div><!-- End .span9 -->
        </div><!-- End .row-fluid -->

@stop

@section('script')
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.peity.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.uniform.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/chosen/chosen/chosen.jquery.min.js') }}"></script>

<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/flot/jquery.flot.js') }}"></script>



<script src="{{ URL::asset('web/js/scripts.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/jnavigate.jquery.min.js') }}"></script>

<script>
function insert(){
    var copy = $('#to_copy');
    var html = copy.html();
    copy.before(html);

}
function deletes(obj){
        $(obj).parent().parent().remove();

}
function sub(){
    $('#form_new').submit();
}
</script>
@stop
